
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>选择器&节点 · EasyClick开发文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../acevent-api.html" />
    
    
    <link rel="prev" href="global-shortcut.html" />
    

    
        <link rel="shortcut icon" href="/zh-cn/images/ico.png" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/zh-cn/images/ico.png">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../features.html">
            
                <a href="../../features.html">
            
                    
                    特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../changelog.html">
            
                <a href="../../changelog.html">
            
                    
                    更改记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../getting-start.html">
            
                <a href="../../getting-start.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <a target="_blank" href="https://www.bilibili.com/video/bv1W54y1Q7JG">
            
                    
                    视频教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../devtools/dev-tools.html">
            
                <a href="../devtools/dev-tools.html">
            
                    
                    开发工具介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../devtools/dev-tools-install.html">
            
                <a href="../devtools/dev-tools-install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../devtools/dev-tools-project.html">
            
                <a href="../devtools/dev-tools-project.html">
            
                    
                    工程相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../devtools/dev-tools-device.html">
            
                <a href="../devtools/dev-tools-device.html">
            
                    
                    设备相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../devtools/dev-tools-screen.html">
            
                <a href="../devtools/dev-tools-screen.html">
            
                    
                    屏幕相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../devtools/dev-tools-settings.html">
            
                <a href="../devtools/dev-tools-settings.html">
            
                    
                    设置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../funcs.html">
            
                <a href="../../funcs.html">
            
                    
                    功能函数
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="global.html">
            
                <a href="global.html">
            
                    
                    全局模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="global-shortcut.html">
            
                <a href="global-shortcut.html">
            
                    
                    全局快捷事件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.3" data-path="selector-node.html">
            
                <a href="selector-node.html">
            
                    
                    选择器&节点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../acevent-api.html">
            
                <a href="../acevent-api.html">
            
                    
                    无障碍事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../event-api.html">
            
                <a href="../event-api.html">
            
                    
                    代理事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../image-api.html">
            
                <a href="../image-api.html">
            
                    
                    图色函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../device-api.html">
            
                <a href="../device-api.html">
            
                    
                    设备函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../file-api.html">
            
                <a href="../file-api.html">
            
                    
                    文件函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="../http-api.html">
            
                <a href="../http-api.html">
            
                    
                    网络函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="../thread-api.html">
            
                <a href="../thread-api.html">
            
                    
                    线程函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="../utils-api.html">
            
                <a href="../utils-api.html">
            
                    
                    常用工具函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.12" data-path="../shell-api.html">
            
                <a href="../shell-api.html">
            
                    
                    Shell命令函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.13" data-path="../sqlite-api.html">
            
                <a href="../sqlite-api.html">
            
                    
                    Sqlite命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../ui-custom.html">
            
                <a href="../ui-custom.html">
            
                    
                    原生UI定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../ui-js-inter.html">
            
                <a href="../ui-js-inter.html">
            
                    
                    JS编写UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../ui-js-template.html">
            
                <a href="../ui-js-template.html">
            
                    
                    模板式UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../ui-native-view.html">
            
                <a href="../ui-native-view.html">
            
                    
                    原生UI控件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="../ui/linearlayout.html">
            
                <a href="../ui/linearlayout.html">
            
                    
                    LinearLayout线性布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.2" data-path="../ui/framelayout.html">
            
                <a href="../ui/framelayout.html">
            
                    
                    FrameLayout帧布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.3" data-path="../ui/relativelayout.html">
            
                <a href="../ui/relativelayout.html">
            
                    
                    RelativeLayout绝对布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.4" data-path="../ui/scrollview.html">
            
                <a href="../ui/scrollview.html">
            
                    
                    ScrollView滚动框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.5" data-path="../ui/view.html">
            
                <a href="../ui/view.html">
            
                    
                    View视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.6" data-path="../ui/button.html">
            
                <a href="../ui/button.html">
            
                    
                    Button按钮
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.7" data-path="../ui/textview.html">
            
                <a href="../ui/textview.html">
            
                    
                    TextView文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.8" data-path="../ui/edittext.html">
            
                <a href="../ui/edittext.html">
            
                    
                    EditText输入框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.9" data-path="../ui/checkbox.html">
            
                <a href="../ui/checkbox.html">
            
                    
                    CheckBox复选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.10" data-path="../ui/radiogroup.html">
            
                <a href="../ui/radiogroup.html">
            
                    
                    RadioGroup布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.11" data-path="../ui/radiobutton.html">
            
                <a href="../ui/radiobutton.html">
            
                    
                    RadioButton单选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.12" data-path="../ui/spinner.html">
            
                <a href="../ui/spinner.html">
            
                    
                    Spinner下拉选择框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.13" data-path="../ui/webview.html">
            
                <a href="../ui/webview.html">
            
                    
                    WebView内嵌浏览器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.14" data-path="../ui/imageview.html">
            
                <a href="../ui/imageview.html">
            
                    
                    ImageView图像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.15" data-path="../ui/cardview.html">
            
                <a href="../ui/cardview.html">
            
                    
                    CardView卡片布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.16" data-path="../ui/switch.html">
            
                <a href="../ui/switch.html">
            
                    
                    Swtich开关按钮
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../html-ui-custom.html">
            
                <a href="../html-ui-custom.html">
            
                    
                    H5 UI定制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../hot-update.html">
            
                <a href="../../hot-update.html">
            
                    
                    热更新功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../zk/zk.html">
            
                <a href="../../zk/zk.html">
            
                    
                    企业版中控接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../zk/zk-ec-state.html">
            
                <a href="../../zk/zk-ec-state.html">
            
                    
                    EC状态控制接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../../zk/zk-node.html">
            
                <a href="../../zk/zk-node.html">
            
                    
                    全局节点模块接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.2.1" data-path="../../zk/global/zk-global-log.html">
            
                <a href="../../zk/global/zk-global-log.html">
            
                    
                    日志接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.2" data-path="../../zk/global/zk-node-service.html">
            
                <a href="../../zk/global/zk-node-service.html">
            
                    
                    节点服务接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.3" data-path="../../zk/global/zk-global-click.html">
            
                <a href="../../zk/global/zk-global-click.html">
            
                    
                    点击动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.4" data-path="../../zk/global/zk-global-multitouch.html">
            
                <a href="../../zk/global/zk-global-multitouch.html">
            
                    
                    多点触摸动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.5" data-path="../../zk/global/zk-global-swipe.html">
            
                <a href="../../zk/global/zk-global-swipe.html">
            
                    
                    滑动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.6" data-path="../../zk/global/zk-global-drag.html">
            
                <a href="../../zk/global/zk-global-drag.html">
            
                    
                    拖动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.7" data-path="../../zk/global/zk-global-input.html">
            
                <a href="../../zk/global/zk-global-input.html">
            
                    
                    输入动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.8" data-path="../../zk/global/zk-global-node.html">
            
                <a href="../../zk/global/zk-global-node.html">
            
                    
                    节点操作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.9" data-path="../../zk/global/zk-global-systemkey.html">
            
                <a href="../../zk/global/zk-global-systemkey.html">
            
                    
                    系统按键接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.10" data-path="../../zk/global/zk-global-notice.html">
            
                <a href="../../zk/global/zk-global-notice.html">
            
                    
                    通知栏接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.11" data-path="../../zk/global/zk-global-floatview.html">
            
                <a href="../../zk/global/zk-global-floatview.html">
            
                    
                    悬浮窗接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../../zk/zk-agent.html">
            
                <a href="../../zk/zk-agent.html">
            
                    
                    代理事件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../../zk/zk-image.html">
            
                <a href="../../zk/zk-image.html">
            
                    
                    图色模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../../zk/zk-device.md">
            
                <span>
            
                    
                    设备模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../../zk/zk-file.md">
            
                <span>
            
                    
                    文件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../../zk/zk-http.md">
            
                <span>
            
                    
                    网络模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../../zk/zk-utils.md">
            
                <span>
            
                    
                    常用工具模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../../zk/zk-shell.md">
            
                <span>
            
                    
                    Shell命令模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../../zk/zk-sqlite.md">
            
                <span>
            
                    
                    Sqlite模块接口 - 开发中
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../plugin/plugins.html">
            
                <a href="../plugin/plugins.html">
            
                    
                    插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../question-answer.html">
            
                <a href="../../question-answer.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../agreement.html">
            
                <a href="../../agreement.html">
            
                    
                    用户协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../declare.html">
            
                <a href="../../declare.html">
            
                    
                    免责声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" >
            
                <span>
            
                    
                    技术交流 QQ群：777164022
            
                </span>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >选择器&节点</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x8BF4;&#x660E;"><b>1. </b>&#x8BF4;&#x660E;</a></li><li><span class="title-icon "></span><a href="#&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;"><b>2. </b>&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</a></li><ul><li><span class="title-icon "></span><a href="#&#x57FA;&#x672C;&#x7528;&#x6CD5;-sget"><b>2.1. </b>&#x57FA;&#x672C;&#x7528;&#x6CD5; S.get()</a></li><li><span class="title-icon "></span><a href="#text&#x5C5E;&#x6027;&#x9009;&#x62E9;"><b>2.2. </b>text&#x5C5E;&#x6027;&#x9009;&#x62E9;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5168;&#x6587;&#x672C;&#x5339;&#x914D;"><b>2.2.1. </b>&#x5168;&#x6587;&#x672C;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x6B63;&#x5219;&#x5339;&#x914D;"><b>2.2.2. </b>&#x6B63;&#x5219;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#id-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><b>2.3. </b>id &#x5C5E;&#x6027;&#x9009;&#x62E9;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5168;&#x91CF;&#x5339;&#x914D;"><b>2.3.1. </b>&#x5168;&#x91CF;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x6B63;&#x5219;&#x5339;&#x914D;_1"><b>2.3.2. </b>&#x6B63;&#x5219;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#clz-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><b>2.4. </b>clz &#x5C5E;&#x6027;&#x9009;&#x62E9;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5168;&#x91CF;&#x5339;&#x914D;_1"><b>2.4.1. </b>&#x5168;&#x91CF;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x6B63;&#x5219;&#x5339;&#x914D;_2"><b>2.4.2. </b>&#x6B63;&#x5219;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#pkg-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><b>2.5. </b>pkg &#x5C5E;&#x6027;&#x9009;&#x62E9;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5168;&#x91CF;&#x5339;&#x914D;_2"><b>2.5.1. </b>&#x5168;&#x91CF;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x6B63;&#x5219;&#x5339;&#x914D;_3"><b>2.5.2. </b>&#x6B63;&#x5219;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#desc-&#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;"><b>2.6. </b>desc &#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5168;&#x91CF;&#x5339;&#x914D;_3"><b>2.6.1. </b>&#x5168;&#x91CF;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x6B63;&#x5219;&#x5339;&#x914D;_4"><b>2.6.2. </b>&#x6B63;&#x5219;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#&#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;"><b>2.7. </b>&#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;</a></li><ul><li><span class="title-icon "></span><a href="#drawingorder"><b>2.7.1. </b>drawingOrder</a></li><li><span class="title-icon "></span><a href="#depth"><b>2.7.2. </b>depth</a></li></ul><li><span class="title-icon "></span><a href="#&#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;"><b>2.8. </b>&#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;</a></li><ul><li><span class="title-icon "></span><a href="#visible-&#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;"><b>2.8.1. </b>visible &#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#bounds-&#x8303;&#x56F4;&#x5339;&#x914D;"><b>2.8.2. </b>bounds &#x8303;&#x56F4;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#checkable"><b>2.8.3. </b>checkable</a></li><li><span class="title-icon "></span><a href="#checked"><b>2.8.4. </b>checked</a></li><li><span class="title-icon "></span><a href="#clickable"><b>2.8.5. </b>clickable</a></li><li><span class="title-icon "></span><a href="#longclickable"><b>2.8.6. </b>longClickable</a></li><li><span class="title-icon "></span><a href="#scrollable"><b>2.8.7. </b>scrollable</a></li><li><span class="title-icon "></span><a href="#focusable"><b>2.8.8. </b>focusable</a></li><li><span class="title-icon "></span><a href="#enabled"><b>2.8.9. </b>enabled</a></li><li><span class="title-icon "></span><a href="#focused"><b>2.8.10. </b>focused</a></li><li><span class="title-icon "></span><a href="#selected"><b>2.8.11. </b>selected</a></li><li><span class="title-icon "></span><a href="#index"><b>2.8.12. </b>index</a></li><li><span class="title-icon "></span><a href="#childcount"><b>2.8.13. </b>childCount</a></li></ul><li><span class="title-icon "></span><a href="#&#x7EA7;&#x8054;&#x5339;&#x914D;"><b>2.9. </b>&#x7EA7;&#x8054;&#x5339;&#x914D;</a></li><li><span class="title-icon "></span><a href="#&#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;"><b>2.10. </b>&#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;</a></li></ul><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;"><b>3. </b>&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;</a></li><ul><li><span class="title-icon "></span><a href="#&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9;-getonenodeinfo"><b>3.1. </b>&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9; getOneNodeInfo</a></li><li><span class="title-icon "></span><a href="#&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9;-getnodeinfo"><b>3.2. </b>&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9; getNodeInfo</a></li><li><span class="title-icon "></span><a href="#&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getonenodeinfo"><b>3.3. </b>&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C; getOneNodeInfo</a></li><li><span class="title-icon "></span><a href="#&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getnodeinfo"><b>3.4. </b>&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C; getNodeInfo</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9;-parent"><b>3.5. </b>&#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9; parent</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;-child"><b>3.6. </b>&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9; child</a></li><li><span class="title-icon "></span><a href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;-allchildren"><b>3.7. </b>&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9; allChildren</a></li><li><span class="title-icon "></span><a href="#&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9;-siblings"><b>3.8. </b>&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9; siblings</a></li><li><span class="title-icon "></span><a href="#&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-previoussiblings"><b>3.9. </b>&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9; previousSiblings</a></li><li><span class="title-icon "></span><a href="#&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-nextsiblings"><b>3.10. </b>&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9; nextSiblings</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB;-click"><b>3.11. </b>&#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB; click</a></li><li><span class="title-icon "></span><a href="#&#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB;-clickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.12. </b>&#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB; clickEx (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB;-longclickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.13. </b>&#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB; longClickEx (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9;-clickcenter"><b>3.14. </b>&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9; clickCenter</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB;-longclick"><b>3.15. </b>&#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB; longClick</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x8F93;&#x5165;-inputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.16. </b>&#x8282;&#x70B9;&#x8F93;&#x5165; inputText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165;-imeinputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.17. </b>&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165; imeInputText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664;-cleartext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.18. </b>&#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664; clearText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x5237;&#x65B0;-refresh"><b>3.19. </b>&#x8282;&#x70B9;&#x5237;&#x65B0; refresh</a></li><li><span class="title-icon "></span><a href="#&#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD;-isvalid"><b>3.20. </b>&#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD; isValid</a></li><li><span class="title-icon "></span><a href="#&#x5411;&#x524D;&#x6EDA;&#x52A8;-scrollforward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.21. </b>&#x5411;&#x524D;&#x6EDA;&#x52A8; scrollForward (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li><li><span class="title-icon "></span><a href="#&#x5411;&#x540E;&#x6EDA;&#x52A8;-scrollbackward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><b>3.22. </b>&#x5411;&#x540E;&#x6EDA;&#x52A8; scrollBackward (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</a></li></ul></ul></div><a href="#&#x8BF4;&#x660E;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x8BF4;&#x660E;"><a name="&#x8BF4;&#x660E;" class="anchor-navigation-ex-anchor" href="#&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x8BF4;&#x660E;</h1>
<p>&#x8FD9;&#x4E2A;&#x7AE0;&#x8282;&#x4E3B;&#x8981;&#x8BB2;&#x89E3;&#x9009;&#x62E9;&#x5668;&#x7C7B;&#x4F7F;&#x7528;&#x548C;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;</p>
<h1 id="&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;"><a name="&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;" class="anchor-navigation-ex-anchor" href="#&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</h1>
<ul>
<li>&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;&#x662F;&#x652F;&#x6301;&#x7EA7;&#x8054;&#x9009;&#x62E9;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x65E0;&#x6CD5;&#x76F4;&#x63A5;&#x9009;&#x62E9;&#x5230;&#x5143;&#x7D20;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5148;&#x901A;&#x8FC7;&#x9009;&#x62E9;&#x7236;&#x7EA7;&#x540E;&#x518D;&#x9009;&#x62E9;&#x5B50;&#x7EA7;</li>
<li>&#x9009;&#x62E9;&#x5668;&#x90E8;&#x5206;&#x652F;&#x6491;&#x6B63;&#x5219;&#x5339;&#x914D;&#xFF0C;&#x8BF7;&#x53C2;&#x8003;java&#x7684;&#x6B63;&#x5219;&#x8BED;&#x6CD5;&#xFF0C;<a href="https://www.runoob.com/java/java-regular-expressions.html" target="_blank">&#x6559;&#x7A0B;</a></li>
</ul>
<h2 id="&#x57FA;&#x672C;&#x7528;&#x6CD5;-sget"><a name="&#x57FA;&#x672C;&#x7528;&#x6CD5;-sget" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x672C;&#x7528;&#x6CD5;-sget"><i class="fa fa-link" aria-hidden="true"></i></a>2.1. &#x57FA;&#x672C;&#x7528;&#x6CD5; S.get()</h2>
<p>&#x9664;&#x4E86;&#x57FA;&#x672C;&#x7528;&#x6CD5;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5C5E;&#x6027;&#x540D;&#x65B9;&#x6CD5;&#x76F4;&#x63A5;&#x5FEB;&#x6377;&#x9009;&#x62E9;</p>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;,&#x4F46;&#x662F;&#x8FD9;&#x4E2A;&#x9009;&#x62E9;&#x5668;&#x662F;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x6761;&#x4EF6;&#x5C5E;&#x6027;&#x7684;</span>
    <span class="hljs-keyword">var</span> selector = S.get();

}
main();
</code></pre>
</blockquote>
<h2 id="text&#x5C5E;&#x6027;&#x9009;&#x62E9;"><a name="text&#x5C5E;&#x6027;&#x9009;&#x62E9;" class="anchor-navigation-ex-anchor" href="#text&#x5C5E;&#x6027;&#x9009;&#x62E9;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2. text&#x5C5E;&#x6027;&#x9009;&#x62E9;</h2>
<h3 id="&#x5168;&#x6587;&#x672C;&#x5339;&#x914D;"><a name="&#x5168;&#x6587;&#x672C;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x5168;&#x6587;&#x672C;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2.1. &#x5168;&#x6587;&#x672C;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = text(<span class="hljs-string">&quot;&#x8BBE;&#x7F6E;&quot;</span>);
    click(selector);
}
main();
</code></pre>
</blockquote>
<h3 id="&#x6B63;&#x5219;&#x5339;&#x914D;"><a name="&#x6B63;&#x5219;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x6B63;&#x5219;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2.2. &#x6B63;&#x5219;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
  <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
  <span class="hljs-keyword">var</span> selector = textMatch(<span class="hljs-string">&quot;.*&#x8BBE;&#x7F6E;.*&quot;</span>);
  <span class="hljs-keyword">var</span> result = click(selector);
  <span class="hljs-keyword">if</span> (result) {
     toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
  } <span class="hljs-keyword">else</span> {
    toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);   
  }
}

main();
</code></pre>
</blockquote>
<h2 id="id-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><a name="id-&#x5C5E;&#x6027;&#x9009;&#x62E9;" class="anchor-navigation-ex-anchor" href="#id-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><i class="fa fa-link" aria-hidden="true"></i></a>2.3. id &#x5C5E;&#x6027;&#x9009;&#x62E9;</h2>
<h3 id="&#x5168;&#x91CF;&#x5339;&#x914D;"><a name="&#x5168;&#x91CF;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x5168;&#x91CF;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.3.1. &#x5168;&#x91CF;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = id(<span class="hljs-string">&quot;com.tencent.mm:id/a1&quot;</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="&#x6B63;&#x5219;&#x5339;&#x914D;_1"><a name="&#x6B63;&#x5219;&#x5339;&#x914D;_1" class="anchor-navigation-ex-anchor" href="#&#x6B63;&#x5219;&#x5339;&#x914D;_1"><i class="fa fa-link" aria-hidden="true"></i></a>2.3.2. &#x6B63;&#x5219;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = idMatch(<span class="hljs-string">&quot;.*id8.*&quot;</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="clz-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><a name="clz-&#x5C5E;&#x6027;&#x9009;&#x62E9;" class="anchor-navigation-ex-anchor" href="#clz-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><i class="fa fa-link" aria-hidden="true"></i></a>2.4. clz &#x5C5E;&#x6027;&#x9009;&#x62E9;</h2>
<h3 id="&#x5168;&#x91CF;&#x5339;&#x914D;_1"><a name="&#x5168;&#x91CF;&#x5339;&#x914D;_1" class="anchor-navigation-ex-anchor" href="#&#x5168;&#x91CF;&#x5339;&#x914D;_1"><i class="fa fa-link" aria-hidden="true"></i></a>2.4.1. &#x5168;&#x91CF;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
   <span class="hljs-keyword">var</span> selector = clz(<span class="hljs-string">&quot;android.widget.TextView&quot;</span>);
   <span class="hljs-keyword">var</span> result = click(selector);
   <span class="hljs-keyword">if</span> (result) {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
   } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
   }
}
main();
</code></pre>
</blockquote>
<h3 id="&#x6B63;&#x5219;&#x5339;&#x914D;_2"><a name="&#x6B63;&#x5219;&#x5339;&#x914D;_2" class="anchor-navigation-ex-anchor" href="#&#x6B63;&#x5219;&#x5339;&#x914D;_2"><i class="fa fa-link" aria-hidden="true"></i></a>2.4.2. &#x6B63;&#x5219;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
   <span class="hljs-keyword">var</span> selector = clzMatch(<span class="hljs-string">&quot;.*TextView.*&quot;</span>);
   <span class="hljs-keyword">var</span> result = click(selector);
   <span class="hljs-keyword">if</span> (result) {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
   } <span class="hljs-keyword">else</span> {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
   }
}
main();
</code></pre>
</blockquote>
<h2 id="pkg-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><a name="pkg-&#x5C5E;&#x6027;&#x9009;&#x62E9;" class="anchor-navigation-ex-anchor" href="#pkg-&#x5C5E;&#x6027;&#x9009;&#x62E9;"><i class="fa fa-link" aria-hidden="true"></i></a>2.5. pkg &#x5C5E;&#x6027;&#x9009;&#x62E9;</h2>
<h3 id="&#x5168;&#x91CF;&#x5339;&#x914D;_2"><a name="&#x5168;&#x91CF;&#x5339;&#x914D;_2" class="anchor-navigation-ex-anchor" href="#&#x5168;&#x91CF;&#x5339;&#x914D;_2"><i class="fa fa-link" aria-hidden="true"></i></a>2.5.1. &#x5168;&#x91CF;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
   <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
   <span class="hljs-keyword">var</span> selector = pkg(<span class="hljs-string">&quot;com.tencent.mm&quot;</span>);
   <span class="hljs-keyword">var</span> result = click(selector);
   <span class="hljs-keyword">if</span> (result) {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
   } <span class="hljs-keyword">else</span> {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
   }
}
main();
</code></pre>
</blockquote>
<h3 id="&#x6B63;&#x5219;&#x5339;&#x914D;_3"><a name="&#x6B63;&#x5219;&#x5339;&#x914D;_3" class="anchor-navigation-ex-anchor" href="#&#x6B63;&#x5219;&#x5339;&#x914D;_3"><i class="fa fa-link" aria-hidden="true"></i></a>2.5.2. &#x6B63;&#x5219;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
   <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
   <span class="hljs-keyword">var</span> selector = pkgMatch(<span class="hljs-string">&quot;.*tencent.*&quot;</span>);
   <span class="hljs-keyword">var</span> result = click(selector);
   <span class="hljs-keyword">if</span> (result) {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
   } <span class="hljs-keyword">else</span> {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
   }
}
main();
</code></pre>
</blockquote>
<h2 id="desc-&#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;"><a name="desc-&#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;" class="anchor-navigation-ex-anchor" href="#desc-&#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;"><i class="fa fa-link" aria-hidden="true"></i></a>2.6. desc &#x6587;&#x672C;&#x5C5E;&#x6027;&#x9009;&#x62E9;</h2>
<h3 id="&#x5168;&#x91CF;&#x5339;&#x914D;_3"><a name="&#x5168;&#x91CF;&#x5339;&#x914D;_3" class="anchor-navigation-ex-anchor" href="#&#x5168;&#x91CF;&#x5339;&#x914D;_3"><i class="fa fa-link" aria-hidden="true"></i></a>2.6.1. &#x5168;&#x91CF;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
   <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
   <span class="hljs-keyword">var</span> selector = desc(<span class="hljs-string">&quot;&#x6211;&#x662F;&#x63CF;&#x8FF0;&quot;</span>);
   <span class="hljs-keyword">var</span> result = click(selector);
   <span class="hljs-keyword">if</span> (result) {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
   } <span class="hljs-keyword">else</span> {
       toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
   }
}
main();
</code></pre>
</blockquote>
<h3 id="&#x6B63;&#x5219;&#x5339;&#x914D;_4"><a name="&#x6B63;&#x5219;&#x5339;&#x914D;_4" class="anchor-navigation-ex-anchor" href="#&#x6B63;&#x5219;&#x5339;&#x914D;_4"><i class="fa fa-link" aria-hidden="true"></i></a>2.6.2. &#x6B63;&#x5219;&#x5339;&#x914D;</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = descMatch(<span class="hljs-string">&quot;.*&#x63CF;&#x8FF0;.*&quot;</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main()
</code></pre>
</blockquote>
<h2 id="&#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;"><a name="&#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.7. &#x6DF1;&#x5EA6;&#x548C;&#x7ED8;&#x5236;&#x987A;&#x5E8F;&#x5339;&#x914D;</h2>
<ul>
<li>&#x4E3B;&#x8981;&#x76EE;&#x6807;&#x662F;&#x4E3A;&#x4E86;&#x6D88;&#x9664;&#x52A8;&#x6001;ID(&#x4F8B;&#x5982;&#x6296;&#x97F3;&#x7B49;)&#x3001;&#x76F8;&#x540C;&#x7684;ID&#x5E26;&#x6765;&#x7684;&#x95EE;&#x9898;</li>
</ul>
<h3 id="drawingorder"><a name="drawingorder" class="anchor-navigation-ex-anchor" href="#drawingorder"><i class="fa fa-link" aria-hidden="true"></i></a>2.7.1. drawingOrder</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
  <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
  <span class="hljs-keyword">var</span> selector = drawingOrder(<span class="hljs-number">1</span>);
  <span class="hljs-keyword">var</span> result = click(selector);
  <span class="hljs-keyword">if</span> (result) {
      toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
  } <span class="hljs-keyword">else</span> {
      toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
  }
}
main();
</code></pre>
</blockquote>
<h3 id="depth"><a name="depth" class="anchor-navigation-ex-anchor" href="#depth"><i class="fa fa-link" aria-hidden="true"></i></a>2.7.2. depth</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = depth(<span class="hljs-number">1</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }   
}
main();
</code></pre>
</blockquote>
<h2 id="&#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;"><a name="&#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;"><i class="fa fa-link" aria-hidden="true"></i></a>2.8. &#x5176;&#x4ED6;&#x5339;&#x914D;&#x89C4;&#x5219;</h2>
<h3 id="visible-&#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;"><a name="visible-&#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#visible-&#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.1. visible &#x53EF;&#x89C6;&#x5316;&#x5C5E;&#x6027;&#x5339;&#x914D;</h3>
<ul>
<li>&#x6309;&#x7167;&#x5C5E;&#x6027; visible &#x8FDB;&#x884C;&#x5339;&#x914D;</li>
<li>@param value &#x5B57;&#x7B26;&#x4E32;</li>
<li>@return {S} &#x8282;&#x70B9;&#x9009;&#x62E9;&#x5668;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{    
    <span class="hljs-keyword">var</span> node = visible(<span class="hljs-literal">true</span>).getOneNodeInfo(<span class="hljs-number">1000</span>);
    logd(<span class="hljs-string">&quot;node &quot;</span>+node);
}
main();
</code></pre>
</blockquote>
<h3 id="bounds-&#x8303;&#x56F4;&#x5339;&#x914D;"><a name="bounds-&#x8303;&#x56F4;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#bounds-&#x8303;&#x56F4;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.2. bounds &#x8303;&#x56F4;&#x5339;&#x914D;</h3>
<ul>
<li>&#x6309;&#x7167;&#x5C5E;&#x6027; bounds &#x8FDB;&#x884C;&#x8303;&#x56F4;
*</li>
<li>@param left &#x8303;&#x56F4;&#x5DE6;&#x8FB9;&#x6570;&#x503C;</li>
<li>@param top &#x8303;&#x56F4;&#x4E0A;&#x8FB9;&#x6570;&#x503C;</li>
<li>@param right &#x8303;&#x56F4;&#x53F3;&#x8FB9;&#x6570;&#x503C;</li>
<li>@param bottom &#x8303;&#x56F4;&#x5E95;&#x8FB9;&#x6570;&#x503C;</li>
<li>@return {S} &#x8282;&#x70B9;&#x9009;&#x62E9;&#x5668;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{    
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61; 0 - 800&#x4EE5;&#x5185;&#x8303;&#x56F4;&#x5185;&#x7684;&#x63A7;&#x4EF6;</span>
    <span class="hljs-keyword">var</span> selector = bounds(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">800</span>,<span class="hljs-number">800</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="checkable"><a name="checkable" class="anchor-navigation-ex-anchor" href="#checkable"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.3. checkable</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{    
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = checkable(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="checked"><a name="checked" class="anchor-navigation-ex-anchor" href="#checked"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.4. checked</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{    
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = checked(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="clickable"><a name="clickable" class="anchor-navigation-ex-anchor" href="#clickable"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.5. clickable</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = clickable(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="longclickable"><a name="longclickable" class="anchor-navigation-ex-anchor" href="#longclickable"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.6. longClickable</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = longClickable(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="scrollable"><a name="scrollable" class="anchor-navigation-ex-anchor" href="#scrollable"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.7. scrollable</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = scrollable(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="focusable"><a name="focusable" class="anchor-navigation-ex-anchor" href="#focusable"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.8. focusable</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = focusable(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="enabled"><a name="enabled" class="anchor-navigation-ex-anchor" href="#enabled"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.9. enabled</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = enabled(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="focused"><a name="focused" class="anchor-navigation-ex-anchor" href="#focused"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.10. focused</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = focused(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="selected"><a name="selected" class="anchor-navigation-ex-anchor" href="#selected"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.11. selected</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = selected(<span class="hljs-literal">true</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="index"><a name="index" class="anchor-navigation-ex-anchor" href="#index"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.12. index</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = index(<span class="hljs-number">1</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h3 id="childcount"><a name="childcount" class="anchor-navigation-ex-anchor" href="#childcount"><i class="fa fa-link" aria-hidden="true"></i></a>2.8.13. childCount</h3>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-keyword">var</span> selector = childCount(<span class="hljs-number">1</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x7EA7;&#x8054;&#x5339;&#x914D;"><a name="&#x7EA7;&#x8054;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x7EA7;&#x8054;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.9. &#x7EA7;&#x8054;&#x5339;&#x914D;</h2>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x7236;&#x7EA7;&#x4E3A;android.widget.ScrollView&#x4E0B;&#x7684;&#x5B50;&#x8282;&#x70B9;clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> selector = clz(<span class="hljs-string">&quot;android.widget.ScrollView&quot;</span>)
                           .child()
                          .clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;"><a name="&#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;" class="anchor-navigation-ex-anchor" href="#&#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;"><i class="fa fa-link" aria-hidden="true"></i></a>2.10. &#x591A;&#x5C5E;&#x6027;&#x5339;&#x914D;</h2>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;&#xFF0C;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9;&#x5305;&#x542B;&quot;&#x9009;&#x62E9;&#x5668;&quot;&#x5E76;&#x4E14;checked=true&#x5E76;&#x4E14;&#x7C7B;&#x540D;=android.widget.CheckBox&#x7684;&#x5143;&#x7D20;</span>
    <span class="hljs-keyword">var</span> selector = text(<span class="hljs-string">&quot;.*&#x9009;&#x62E9;&#x5668;.*&quot;</span>)
                          .checked(<span class="hljs-literal">true</span>)
                          .clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>);
    <span class="hljs-keyword">var</span> result = click(selector);
    <span class="hljs-keyword">if</span> (result) {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h1 id="&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;"><a name="&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7C7B;</h1>
<p>&#x8282;&#x70B9;&#x5BF9;&#x8C61;NodeInfo&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x83B7;&#x53D6;getNodeInfo&#x65B9;&#x6CD5;&#x83B7;&#x53D6;&#x5230;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x7684;&#x6570;&#x7EC4;,&#x8282;&#x70B9;&#x5305;&#x542B;&#x7684;&#x4FE1;&#x606F;&#x5982;&#x4E0B;</p>
<ul>
<li>id: &#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x8D44;&#x6E90;&#x7684;ID</li>
<li>clz: &#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x89C6;&#x56FE;&#x7C7B;&#x540D;&#xFF0C;&#x4F8B;&#x5982; android.widget.TextView</li>
<li>pkg: &#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x5305;&#x540D;&#xFF0C;&#x4F8B;&#x5982;com.tencent.mm</li>
<li>desc: &#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x5185;&#x5BB9;&#x63CF;&#x8FF0;</li>
<li>text: &#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x6587;&#x672C;</li>
<li>checkable: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x53EF;&#x9009;&#x4E2D;</li>
<li>checked: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x9009;&#x4E2D;</li>
<li>clickable: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x53EF;&#x70B9;&#x51FB;</li>
<li>enabled: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x542F;&#x7528;</li>
<li>focusable: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x53EF;&#x83B7;&#x53D6;&#x7126;&#x70B9;</li>
<li>focused: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x805A;&#x7126;</li>
<li>longClickable: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x53EF;&#x957F;&#x70B9;&#x51FB;</li>
<li>scrollable: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x6EDA;&#x52A8;</li>
<li>selected: &#x5E03;&#x5C14;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x88AB;&#x9009;&#x62E9;</li>
<li>childCount: &#x6574;&#x578B;&#xFF0C;&#x5B50;&#x8282;&#x70B9;&#x7684;&#x4E2A;&#x6570;</li>
<li>index: &#x6574;&#x578B; &#x8282;&#x70B9;&#x7684;&#x7D22;&#x5F15;</li>
<li>depth: &#x6574;&#x578B; &#x8282;&#x70B9;&#x7684;&#x5C42;&#x7EA7;&#x6DF1;&#x5EA6;</li>
<li>drawingOrder: &#x6574;&#x578B; &#x8282;&#x70B9;&#x7684;&#x7ED8;&#x5236;&#x987A;&#x5E8F;</li>
<li>bounds: Rect&#x578B;&#xFF0C;&#x7A7A;&#x95F4;&#x5BF9;&#x8C61;<ul>
<li>top: &#x6574;&#x578B;&#xFF0C;&#x9876;&#x90E8;&#x4F4D;&#x7F6E;</li>
<li>bottom: &#x6574;&#x578B;&#xFF0C;&#x5E95;&#x90E8;&#x4F4D;&#x7F6E;</li>
<li>left: &#x6574;&#x578B;&#xFF0C;&#x5DE6;&#x8FB9;&#x4F4D;&#x7F6E;</li>
<li>right: &#x6574;&#x578B;&#xFF0C;&#x53F3;&#x8FB9;&#x4F4D;&#x7F6E;</li>
</ul>
</li>
<li>visibleBounds: Rect&#x578B;&#xFF0C;&#x53EF;&#x89C6;&#x7A7A;&#x95F4;&#x5BF9;&#x8C61;<ul>
<li>top: &#x6574;&#x578B;&#xFF0C;&#x9876;&#x90E8;&#x4F4D;&#x7F6E;</li>
<li>bottom: &#x6574;&#x578B;&#xFF0C;&#x5E95;&#x90E8;&#x4F4D;&#x7F6E;</li>
<li>left: &#x6574;&#x578B;&#xFF0C;&#x5DE6;&#x8FB9;&#x4F4D;&#x7F6E;</li>
<li>right: &#x6574;&#x578B;&#xFF0C;&#x53F3;&#x8FB9;&#x4F4D;&#x7F6E;</li>
</ul>
</li>
</ul>
<h2 id="&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9;-getonenodeinfo"><a name="&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9;-getonenodeinfo" class="anchor-navigation-ex-anchor" href="#&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9;-getonenodeinfo"><i class="fa fa-link" aria-hidden="true"></i></a>3.1. &#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x8282;&#x70B9; getOneNodeInfo</h2>
<ul>
<li>&#x901A;&#x8FC7;&#x9009;&#x62E9;&#x5668; &#x83B7;&#x53D6;&#x7B2C;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x4FE1;&#x606F;</li>
<li>@param timeout &#x7B49;&#x5F85;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x6BEB;&#x79D2;, &#x5982;&#x679C;&#x662F;0&#xFF0C;&#x4EE3;&#x8868;&#x4E0D;&#x7B49;&#x5F85;</li>
<li>@return NodeInfo &#x5BF9;&#x8C61; &#x6216;&#x8005;null</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;&#xFF0C;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.click();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9;-getnodeinfo"><a name="&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9;-getnodeinfo" class="anchor-navigation-ex-anchor" href="#&#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9;-getnodeinfo"><i class="fa fa-link" aria-hidden="true"></i></a>3.2. &#x9009;&#x62E9;&#x5668;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x8282;&#x70B9; getNodeInfo</h2>
<ul>
<li>&#x83B7;&#x53D6;&#x8282;&#x70B9;&#x4FE1;&#x606F;</li>
<li>@param timeout &#x7B49;&#x5F85;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x6BEB;&#x79D2;, &#x5982;&#x679C;&#x662F;0&#xFF0C;&#x4EE3;&#x8868;&#x4E0D;&#x7B49;&#x5F85;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x4FE1;&#x606F;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;&#xFF0C;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getNodeInfo(<span class="hljs-number">10000</span>);
     logd(node);
}
main();
</code></pre>
</blockquote>
<h2 id="&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getonenodeinfo"><a name="&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getonenodeinfo" class="anchor-navigation-ex-anchor" href="#&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getonenodeinfo"><i class="fa fa-link" aria-hidden="true"></i></a>3.3. &#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C; getOneNodeInfo</h2>
<ul>
<li>&#x901A;&#x8FC7;&#x9009;&#x62E9;&#x5668; &#x83B7;&#x53D6;&#x7B2C;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#x4FE1;&#x606F;</li>
<li>@param timeout &#x7B49;&#x5F85;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x6BEB;&#x79D2;, &#x5982;&#x679C;&#x662F;0&#xFF0C;&#x4EE3;&#x8868;&#x4E0D;&#x7B49;&#x5F85;</li>
<li>@return NodeInfo &#x5BF9;&#x8C61; &#x6216;&#x8005;null</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;&#xFF0C;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        <span class="hljs-comment">//&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;</span>
        node =node.getOneNodeInfo(text(<span class="hljs-string">&quot;&#x5E7F;&#x544A;&quot;</span>),<span class="hljs-number">10000</span>);
        <span class="hljs-keyword">if</span> (!node){
            toast(<span class="hljs-string">&quot;&#x65E0;&#x5B50;&#x8282;&#x70B9;&quot;</span>);
            <span class="hljs-keyword">return</span>;
        }
       <span class="hljs-keyword">var</span> x= node.click();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getnodeinfo"><a name="&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getnodeinfo" class="anchor-navigation-ex-anchor" href="#&#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C;-getnodeinfo"><i class="fa fa-link" aria-hidden="true"></i></a>3.4. &#x7EA7;&#x8054;&#x83B7;&#x53D6;&#x591A;&#x4E2A;&#x5B50;&#x8282;&#x70B9;&#x64CD;&#x4F5C; getNodeInfo</h2>
<ul>
<li>&#x83B7;&#x53D6;&#x8282;&#x70B9;&#x4FE1;&#x606F;</li>
<li>@param timeout &#x7B49;&#x5F85;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x662F;&#x6BEB;&#x79D2;, &#x5982;&#x679C;&#x662F;0&#xFF0C;&#x4EE3;&#x8868;&#x4E0D;&#x7B49;&#x5F85;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x4FE1;&#x606F;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;&#xFF0C;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        <span class="hljs-comment">//&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;</span>
        node =node.getNodeInfo(text(<span class="hljs-string">&quot;&#x5E7F;&#x544A;&quot;</span>).clz(<span class="hljs-string">&quot;android.widget.TextView&quot;</span>),<span class="hljs-number">10000</span>);
        <span class="hljs-keyword">if</span> (!node){
            toast(<span class="hljs-string">&quot;&#x65E0;&#x5B50;&#x8282;&#x70B9;&quot;</span>);
            <span class="hljs-keyword">return</span>;
        }
       <span class="hljs-keyword">var</span> x= node.click();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9;-parent"><a name="&#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9;-parent" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9;-parent"><i class="fa fa-link" aria-hidden="true"></i></a>3.5. &#x83B7;&#x53D6;&#x7236;&#x8282;&#x70B9; parent</h2>
<ul>
<li>&#x8BE5;&#x8282;&#x70B9;&#x7684;&#x7236;&#x7EA7;&#x8282;&#x70B9;</li>
<li>@return NodeInfo &#x5BF9;&#x8C61; &#x6216;&#x8005;null</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.parent();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;-child"><a name="&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;-child" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9;-child"><i class="fa fa-link" aria-hidden="true"></i></a>3.6. &#x83B7;&#x53D6;&#x5B50;&#x8282;&#x70B9; child</h2>
<ul>
<li>&#x53D6;&#x5F97;&#x5355;&#x4E2A;&#x5B50;&#x8282;&#x70B9;</li>
<li>@param index &#x5B50;&#x8282;&#x70B9;&#x7D22;&#x5F15;</li>
<li>@return NodeInfo &#x5BF9;&#x8C61; &#x6216;&#x8005;null</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.child(<span class="hljs-number">0</span>);
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;-allchildren"><a name="&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;-allchildren" class="anchor-navigation-ex-anchor" href="#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;-allchildren"><i class="fa fa-link" aria-hidden="true"></i></a>3.7. &#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9; allChildren</h2>
<ul>
<li>&#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.allChildren();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9;-siblings"><a name="&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9;-siblings" class="anchor-navigation-ex-anchor" href="#&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9;-siblings"><i class="fa fa-link" aria-hidden="true"></i></a>3.8. &#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9; siblings</h2>
<ul>
<li>&#x5F53;&#x524D;&#x8282;&#x70B9;&#x7684;&#x6240;&#x6709;&#x5144;&#x5F1F;&#x8282;&#x70B9;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.siblings();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-previoussiblings"><a name="&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-previoussiblings" class="anchor-navigation-ex-anchor" href="#&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-previoussiblings"><i class="fa fa-link" aria-hidden="true"></i></a>3.9. &#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9; previousSiblings</h2>
<ul>
<li>&#x5728;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x524D;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node!=<span class="hljs-literal">null</span>) {
       <span class="hljs-keyword">var</span> x= node.previousSiblings();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-nextsiblings"><a name="&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-nextsiblings" class="anchor-navigation-ex-anchor" href="#&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;-nextsiblings"><i class="fa fa-link" aria-hidden="true"></i></a>3.10. &#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9; nextSiblings</h2>
<ul>
<li>&#x5728;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x540E;&#x9762;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;</li>
<li>@return NodeInfo &#x8282;&#x70B9;&#x96C6;&#x5408;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.ViewGroup &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.ViewGroup&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
       <span class="hljs-keyword">var</span> x= node.nextSiblings();
       logd(x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB;-click"><a name="&#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB;-click" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB;-click"><i class="fa fa-link" aria-hidden="true"></i></a>3.11. &#x8282;&#x70B9;&#x533A;&#x57DF;&#x968F;&#x673A;&#x70B9;&#x51FB; click</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;7.0&#x4EE5;&#x4E0A;</li>
<li>&#x70B9;&#x51FB;&#x8282;&#x70B9;</li>
<li>@return bool, true &#x6210;&#x529F; ,false &#x5931;&#x8D25;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.click()
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB;-clickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB;-clickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB;-clickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.12. &#x65E0;&#x6307;&#x9488;&#x70B9;&#x51FB; clickEx (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;5.0&#x4EE5;&#x4E0A;</li>
<li>&#x65E0;&#x6307;&#x9488;&#x65B9;&#x5F0F;&#x70B9;&#x51FB;&#x9009;&#x62E9;&#x5668;&#xFF0C;&#x8282;&#x70B9;&#x5FC5;&#x987B;&#x662F;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x624D;&#x884C;</li>
<li>@param selectors &#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</li>
<li>@return {boolean|&#x5E03;&#x5C14;&#x578B;}</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-keyword">var</span> node = text(<span class="hljs-string">&quot;&#x6211;&#x662F;&#x6587;&#x672C;&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">var</span> result = node.clickEx();
    <span class="hljs-keyword">if</span> (result){
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB;-longclickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB;-longclickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB;-longclickex-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.13. &#x65E0;&#x6307;&#x9488;&#x957F;&#x70B9;&#x51FB; longClickEx (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;5.0&#x4EE5;&#x4E0A;</li>
<li>&#x65E0;&#x6307;&#x9488;&#x65B9;&#x5F0F;&#x957F;&#x70B9;&#x51FB;&#x9009;&#x62E9;&#x5668;&#xFF0C;&#x8282;&#x70B9;&#x5FC5;&#x987B;&#x662F;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x624D;&#x884C;</li>
<li>@param selectors &#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</li>
<li>@return {boolean|&#x5E03;&#x5C14;&#x578B;}</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-keyword">var</span> node = text(<span class="hljs-string">&quot;&#x6211;&#x662F;&#x6587;&#x672C;&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">var</span> result = node.longClickEx();
    <span class="hljs-keyword">if</span> (result){
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x70B9;&#x51FB;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9;-clickcenter"><a name="&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9;-clickcenter" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9;-clickcenter"><i class="fa fa-link" aria-hidden="true"></i></a>3.14. &#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9; clickCenter</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;7.0&#x4EE5;&#x4E0A;</li>
<li>&#x8282;&#x70B9;&#x70B9;&#x51FB;&#x4E2D;&#x5FC3;&#x70B9;</li>
<li>@return bool, true &#x6210;&#x529F; ,false &#x5931;&#x8D25;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.clickCenter();
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB;-longclick"><a name="&#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB;-longclick" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB;-longclick"><i class="fa fa-link" aria-hidden="true"></i></a>3.15. &#x8282;&#x70B9;&#x957F;&#x70B9;&#x51FB; longClick</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;7.0&#x4EE5;&#x4E0A;</li>
<li>&#x957F;&#x70B9;&#x51FB;&#x8282;&#x70B9;</li>
<li>@return bool, true &#x6210;&#x529F; ,false &#x5931;&#x8D25;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.CheckBox&#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.CheckBox&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.longClick()
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x8F93;&#x5165;-inputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x8282;&#x70B9;&#x8F93;&#x5165;-inputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x8F93;&#x5165;-inputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.16. &#x8282;&#x70B9;&#x8F93;&#x5165; inputText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;5.0&#x4EE5;&#x4E0A;</li>
<li>&#x5BF9;&#x67D0;&#x4E2A;&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6570;&#x636E;</li>
<li>@param content &#x8981;&#x8F93;&#x5165;&#x7684;&#x5185;&#x5BB9;</li>
<li>@return bool, true &#x6210;&#x529F; ,false &#x5931;&#x8D25;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.EditText &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.EditText&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.inputText(<span class="hljs-string">&quot;&#x5185;&#x5BB9;&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165;-imeinputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165;-imeinputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165;-imeinputtext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.17. &#x8282;&#x70B9;&#x8F93;&#x5165;&#x6CD5;&#x8F93;&#x5165; imeInputText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;5.0&#x4EE5;&#x4E0A;</li>
<li>&#x4F7F;&#x7528;&#x8F93;&#x5165;&#x6CD5;&#x5BF9;&#x67D0;&#x4E2A;&#x8282;&#x70B9;&#x8F93;&#x5165;&#x6570;&#x636E;&#xFF0C;&#x524D;&#x63D0;&#x662F;&#x5DF2;&#x7ECF;&#x8BBE;&#x7F6E;&#x672C;&#x7A0B;&#x5E8F;&#x7684;&#x8F93;&#x5165;&#x6CD5;&#x4E3A;&#x9ED8;&#x8BA4;&#x8F93;&#x5165;&#x6CD5;</li>
<li>@param content &#x8981;&#x8F93;&#x5165;&#x7684;&#x5185;&#x5BB9;</li>
<li>@return bool, true &#x6210;&#x529F; ,false &#x5931;&#x8D25;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.EditText &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.EditText&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.imeInputText(<span class="hljs-string">&quot;&#x5185;&#x5BB9;&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664;-cleartext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664;-cleartext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664;-cleartext-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.18. &#x8282;&#x70B9;&#x6570;&#x636E;&#x6E05;&#x9664; clearText (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x65E0;&#x969C;&#x788D;&#x652F;&#x6301;5.0&#x4EE5;&#x4E0A;</li>
<li>&#x6E05;&#x9664;&#x8282;&#x70B9;&#x6587;&#x672C;&#x6570;&#x636E;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.EditText &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.EditText&quot;</span>).getOneNodeInfo();
    <span class="hljs-keyword">if</span> (node) {
        <span class="hljs-keyword">var</span> r =node.clearText();
        logd(<span class="hljs-string">&quot;r -=&gt; &quot;</span>+r);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x5237;&#x65B0;-refresh"><a name="&#x8282;&#x70B9;&#x5237;&#x65B0;-refresh" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x5237;&#x65B0;-refresh"><i class="fa fa-link" aria-hidden="true"></i></a>3.19. &#x8282;&#x70B9;&#x5237;&#x65B0; refresh</h2>
<ul>
<li>&#x8BE5;&#x65B9;&#x6CD5;&#x4F1A;&#x5237;&#x65B0;&#x8282;&#x70B9;&#x7F13;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.EditText &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.EditText&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        node.refresh();
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD;-isvalid"><a name="&#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD;-isvalid" class="anchor-navigation-ex-anchor" href="#&#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD;-isvalid"><i class="fa fa-link" aria-hidden="true"></i></a>3.20. &#x8282;&#x70B9;&#x6709;&#x6548;&#x5224;&#x65AD; isValid</h2>
<ul>
<li>&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x662F;&#x5426;&#x6709;&#x6548;
@return bool|&#x5E03;&#x5C14;&#x578B; true&#x4EE3;&#x8868;&#x6709;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{ 
    <span class="hljs-comment">//&#x83B7;&#x53D6;&#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</span>
    <span class="hljs-comment">//&#x9009;&#x62E9; &#x8282;&#x70B9; clz=android.widget.EditText &#x6240;&#x6709;&#x8282;&#x70B9;</span>
    <span class="hljs-keyword">var</span> node = clz(<span class="hljs-string">&quot;android.widget.EditText&quot;</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">if</span> (node) {
        <span class="hljs-keyword">var</span> x =node.isValid();
        toast(<span class="hljs-string">&quot;&#x8282;&#x70B9;&#x6709;&#x6548;&#x6027;:&quot;</span>+x);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x65E0;&#x8282;&#x70B9;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x5411;&#x524D;&#x6EDA;&#x52A8;-scrollforward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x5411;&#x524D;&#x6EDA;&#x52A8;-scrollforward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x5411;&#x524D;&#x6EDA;&#x52A8;-scrollforward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.21. &#x5411;&#x524D;&#x6EDA;&#x52A8; scrollForward (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x5411;&#x524D;&#x6EDA;&#x52A8;</li>
<li>@param selectors &#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</li>
<li>@return {boolean|&#x5E03;&#x5C14;&#x578B;}</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-keyword">var</span> node = scrollable(<span class="hljs-literal">true</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">var</span> result = node.scrollForward();
    <span class="hljs-keyword">if</span> (result){
        toast(<span class="hljs-string">&quot;&#x6EDA;&#x52A8;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x6EDA;&#x52A8;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>
<h2 id="&#x5411;&#x540E;&#x6EDA;&#x52A8;-scrollbackward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><a name="&#x5411;&#x540E;&#x6EDA;&#x52A8;-scrollbackward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;" class="anchor-navigation-ex-anchor" href="#&#x5411;&#x540E;&#x6EDA;&#x52A8;-scrollbackward-&#x652F;&#x6301;50-&#x4EE5;&#x4E0A;"><i class="fa fa-link" aria-hidden="true"></i></a>3.22. &#x5411;&#x540E;&#x6EDA;&#x52A8; scrollBackward (&#x652F;&#x6301;5.0 &#x4EE5;&#x4E0A;)</h2>
<ul>
<li>&#x5411;&#x540E;&#x6EDA;&#x52A8;</li>
<li>@param selectors &#x9009;&#x62E9;&#x5668;&#x5BF9;&#x8C61;</li>
<li>@return {boolean|&#x5E03;&#x5C14;&#x578B;}</li>
</ul>
<blockquote>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">main</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-keyword">var</span> node = scrollable(<span class="hljs-literal">true</span>).getOneNodeInfo(<span class="hljs-number">10000</span>);
    <span class="hljs-keyword">var</span> result = node.scrollBackward();
    <span class="hljs-keyword">if</span> (result){
        toast(<span class="hljs-string">&quot;&#x6EDA;&#x52A8;&#x6210;&#x529F;&quot;</span>);
    } <span class="hljs-keyword">else</span> {
        toast(<span class="hljs-string">&quot;&#x6EDA;&#x52A8;&#x5931;&#x8D25;&quot;</span>);
    }
}
main();
</code></pre>
</blockquote>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="global-shortcut.html" class="navigation navigation-prev " aria-label="Previous page: 全局快捷事件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../acevent-api.html" class="navigation navigation-next " aria-label="Next page: 无障碍事件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"选择器&节点","level":"1.7.3","depth":2,"next":{"title":"无障碍事件","level":"1.7.4","depth":2,"path":"zh-cn/funcs/acevent-api.md","ref":"zh-cn/funcs/acevent-api.md","articles":[]},"previous":{"title":"全局快捷事件","level":"1.7.2","depth":2,"path":"zh-cn/funcs/global/global-shortcut.md","ref":"zh-cn/funcs/global/global-shortcut.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","code","copy-code-button","-lunr","-search","search-pro","anchor-navigation-ex","hide-element","favicon-absolute","popup"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"search-pro":{},"popup":{},"code":{"copyButtons":true},"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"/zh-cn/images/ico.png","appleTouchIconPrecomposedMore":{},"favicon":"/zh-cn/images/ico.png"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"EasyClick开发文档","language":"zh-hans","gitbook":"*","description":"记录EasyClick开发教程和常用的函数"},"file":{"path":"zh-cn/funcs/global/selector-node.md","mtime":"2020-06-21T13:56:34.299Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-23T14:38:08.296Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

